<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition>
	<h:outputText value="Upload SMTA template file" style="font: Verdana; font-size: 12px; margin-left: 1%;"/>
	<h:form enctype="multipart/form-data">
		<p:fileUpload fileUploadListener="#{templateUploadBean.uploadSmtaTemplate}"
	         mode="advanced"
	         update="messages"
	         label="Choose a SMTA template file or drag and drop it here"
	         sizeLimit="10485760"
	         allowTypes="/(\.|\/)(rtf|RTF)$/"
	         invalidSizeMessage="The maximum file size allowed is 10 Megabytes !"
	         invalidFileMessage="You are allowed to upload only RTF !" />
	    <p:growl id="messages" showDetail="true" autoUpdate="true" life="10000"/>
	</h:form>
	<h:outputText value="Upload MTA template file. File name must be of the form: 'mtatmplX.rtf', where X is a number from 1-9 designating the MTA template number." style="font: Verdana; font-size: 12px; margin-left: 1%;"/>
	<h:form enctype="multipart/form-data">
		<p:fileUpload fileUploadListener="#{templateUploadBean.uploadMtaTemplate}"
	         mode="advanced"
	         update="messages"
	         label="Choose an MTA template file or drag and drop it here"
	         sizeLimit="10485760"
	         allowTypes="/(\.|\/)(rtf|RTF)$/"
	         invalidSizeMessage="The maximum file size allowed is 10 Megabytes !"
	         invalidFileMessage="You are allowed to upload only RTF !" />
	    <p:growl id="messages" showDetail="true" autoUpdate="true" life="10000"/>
	</h:form>
</ui:composition>

</html>
